CreatePopupCallback

public interface CreatePopupCallback implements BrowserSyncCallback<P, R>

This callback is invoked when browser decides whether a new popup instance can be created or not.

Return the create response to let the browser to create a new popup.

Return the suppress response to suppress popup.

If the callback throws an exception, the suppress method will be invoked.

Important: the engine will be blocked until you return control from the callback.

Types

Link copied to clipboard
public interface Params
The parameters of the CreatePopupCallback.
Link copied to clipboard
public interface Response
A response of the CreatePopupCallback.

Functions

Link copied to clipboard
@CheckForNull()
public abstract R on(P params)
Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.